function redirectPC() {
    var isMobile = /iPhone|iPad|iPod|Android|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|Mobile Safari|Opera Mini/i.test(navigator.userAgent);
    var currentUrl = window.location.pathname;
    var search = window.location.search;
    console.log(window.location,11111);
    console.log(currentUrl,111);
    if (isMobile) {
        console.log("mobile");
    }else{
        console.log("pc");
        let url = "";
        // 不是是移动设备
        if(currentUrl.indexOf('/m/')!==-1){
            console.log(window.location.pathname,222222);
            switch (window.location.pathname){
                // 首页 start
                case '/m/index':
                    url = '/';
                    break;
                case '/m/index/depart/list':
                    url = '/depart/list';
                    break;
                case '/m/index/artist/list':
                    url = '/artist/list';
                    break;
                case '/m/index/event/list' :
                    url = '/event/list';
                    break;
                case '/m/index/artwork/online':
                    url =  '/artwork/online';
                    break;
                case '/m/index/article/list':
                    url = '/index/article/list';
                    break;
                case '/m/index/article':
                    url = '/article';
                    break;
                case '/m/index/online/artwork/detail':
                    url = '/online/artwork/detail';
                    break;
                // 首页 end

                // 机构 start
                case '/m/depart':
                    url = '/depart';
                    break;
                case '/m/depart/page':
                    url = '/depart/page';
                    break;
                case '/m/depart/artwork/detail'                                                                                                                                                                                    :
                    url =  '/depart/artwork/detail';
                    break;
                case '/m/depart/article/detail':
                    url = '/depart/article/detail';
                    break;
                // 机构 end

                // 艺术家 start
                case '/m/artist/page':
                    url = '/artist/page';
                    break;
                case '/m/artist/artwork/detail':
                    url = '/artist/artwork/detail';
                    break;
                case '/m/artist/article/detail':
                    url = '/article/article/detail';
                    break;
                // 艺术家 end
                // 活动展览 start
                case '/m/event/page':
                    url = '/event/page';
                    break;
                case '/m/event/article/detail':
                    url = '/event/article/detail';
                    break;
                // 活动展览 end
            }
        }

        if(url!==''){
            window.location.href = window.location.origin+url+search;
        }

    }
}

redirectPC();
